package com.xyz.demo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name="t_user")
public class User implements Serializable {
    @Id
    private Integer id;

    private String name;
    private String email;

    public User(){}
    public User(Integer i, String n, String e) {
        this.id = i;
        this.name = n;
        this.email = e;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
